package com.wuerer.bath.Service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wuerer.bath.Service.UserService;
import com.wuerer.bath.mapper.UserMapper;
import com.wuerer.bath.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ：Leo
 * @date ：Created in 2022/10/16 11:02
 * @description：
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper,User> implements UserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public User getUserByName(String name) {
        return userMapper.selectByName(name);
    }
}
